home *** CD-ROM | disk | FTP | other *** search
- RANDOM_NUMBER(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- RRAANNDDOOMM__NNUUMMBBEERR - Returns pseudorandom numbers
-
- SSYYNNOOPPSSIISS
- CCAALLLL RRAANNDDOOMM__NNUUMMBBEERR (([HHAARRVVEESSTT==]_h_a_r_v_e_s_t)
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The RRAANNDDOOMM__NNUUMMBBEERR intrinsic subroutine returns one pseudorandom number
- or an array of pseudorandom numbers from the uniform distribution over
- the range 0 <= _x < 1. It accepts the following argument:
-
- _h_a_r_v_e_s_t Must be of type real. It is an output argument. It may be
- a scalar or an array variable. It is set to contain
- pseudorandom numbers from the uniform distribution in the
- interval 0 <= _x < 1.
-
- On UNICOS and UNICOS/mk systems, _h_a_r_v_e_s_t is 64 bits. On
- IRIX systems, _h_a_r_v_e_s_t is 32 bits.
-
- The name of this intrinsic cannot be passed as an argument.
-
- EEXXAAMMPPLLEESS
- REAL X, Y(10,10)
- ! Initialize X with a pseudorandom number
- CALL RANDOM_NUMBER(HARVEST=X)
- CALL RANDOM_NUMBER(Y)
- ! X and Y contain uniformly distributed random numbers
-
- SSEEEE AALLSSOO
- RRAANNDDOOMM__SSEEEEDD(3I), RRAANNFF(3I)
-
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-